const fs = require('fs')
const fmt2json = require('format-to-json');
const content = fs.readFileSync('./template/index.vue','utf-8').toString()

const temp = JSON.stringify({body: content.replace('$','\\$').split('\r\n')})
fmt2json(temp).then(fmtInfo=>{
  fs.writeFileSync('dist/vue.json',fmtInfo.result)
})